Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

direction

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

direction

Detect directionality: left-to-right, right-to-left, or neutral

  • 0.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6M
decreased by-12.85%
Maintainers
1
Weekly downloads
 
Created
Source

direction Build Status Coverage Status

Detect direction: left-to-right, right-to-left, or neutral.

Installation

npm:

$ npm install direction

Component:

$ component install wooorm/direction

Bower:

$ bower install direction

Usage

var direction = require('direction');

direction("A"); // "ltr"
direction("anglais"); // "ltr"
direction("بسيطة"); // "rtl"
direction("@"); // "neutral"

CLI

Install:

$ npm install direction --global

Usage:

Usage: direction [options] words...

Detect directionality: left-to-right, right-to-left, or neutral

Options:

  -h, --help           output usage information
  -v, --version        output version number

Usage:

# output direction of given values
$ direction @
# neutral

# output direction from stdin
$ echo "الانجليزية" | direction
# rtl

License

MIT © Titus Wormer

Keywords

FAQs

Package last updated on 17 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc